﻿@using DirectSell.Model.Message
@using Webdiyer.WebControls.Mvc;
@model PagedList<Messages>
<table class="table table-bordered table-striped">
    <tr>
        <th>序号</th>
        <th>日期</th>
        <th>留言</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
 @{ int i = 0;}
 @foreach (var item in Model)
 {
    <tr>
        <td>@(Model.StartItemIndex + i++)</td>
        <td>@item.CreateDate</td>
        <td><u style="cursor:pointer" class="links" onclick="show_msg('@item.Title', '/User/Message/ShowMsg?id=@item.Id')">@item.Title</u></td>
        @*<td>@item.Title</td>*@
        @if (item.State == 0)
        {
            <td>未读</td>
        }
        else
        {
            <td><p style="color:cornflowerblue">已读</p></td>
        }
        <td><a style="cursor:pointer" onclick="DelMsg('@item.Id')"> 删除</a></td>
    </tr>
 }
</table>